const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
  outputDir: 'dist',
  devServer: {
    open: true, // 自动打开浏览器
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        // target: 'http://192.168.4.124:8083',
        target: 'https://bzhtest.westts.cn',
        // target: 'https://www.memrect.com',
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
    }
  },
})
